//
//  WBPictureCollectionCell.swift
//  SinaWeibo
//
//  Created by zhuangqianwei on 16/11/17.
//  Copyright © 2016年 zhuangqianwei. All rights reserved.
//

import UIKit

class WBPictureCollectionCell: UICollectionViewCell {
    @IBOutlet weak var Img_picture: UIImageView!

    @IBOutlet weak var img_GIF: UIImageView!
    
    var pictureInfo: WBPictureInfo? {
        
        didSet{
            //设置url
//            let url = URL(string: pictureInfo?.thumbnail_pic ?? "")
            Img_picture.sd_setImage(with: pictureInfo?.imageURL)
            self.img_GIF.isHidden = !pictureInfo!.thumbnail_pic!.hasSuffix(".gif")
            
        }
    }
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
